//
//  GlobalDetailCell.swift
//  ZYA
//
//  Created by 邱仙凯 on 2021/11/18.
//  Copyright © 2021 aowang. All rights reserved.
//

import UIKit

class GlobalDetailCell: UITableViewCell {
    
   
    lazy  var bottomBg:UIView = {
        let v = UIView()
        v.backgroundColor = .white
 
        return v
    }()
 
    
    lazy  var itemBg:FormView = {
        let v = FormView()
        v.backgroundColor = .clear
 
        return v
    }()
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
       super.init(style: style, reuseIdentifier: reuseIdentifier)
       self.selectionStyle = .none
        self.backgroundColor = .clear
        self.contentView.backgroundColor = Theme.awModuleBgColor
       
         
        contentView.addSubview(bottomBg)
        bottomBg.addSubview(itemBg)
        bottomBg.snp.makeConstraints { make in
            make.left.equalToSuperview().offset(6)
            make.top.equalToSuperview()
            make.right.equalToSuperview().offset(-6)
            make.bottom.equalToSuperview()
        }
        itemBg.snp.makeConstraints { make in
            make.left.equalToSuperview().offset(10)
            make.top.equalToSuperview()
            make.right.equalToSuperview().offset(-10)
            make.bottom.equalToSuperview()
        }
     
        self.itemBg.ks_width = KSGlobal.screenW - 32
         
       
     
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
